package com.ican.common;

import java.io.File;

public class SystemConstants {

    //实体状态
    /**可用*/
    public final static byte ENTITY_DATE_STATUS_YES = 0;
    /**不可用*/
    public final static byte ENTITY_DATE_STATUS_NO = 1;
    
    /**实体同步状态：没有同步*/
    public final static int ENTITY_DATE_SYN_STATUS_NO = 0;
    /**实体同步状态：同步中*/
    public final static int ENTITY_DATE_SYN_STATUS_RUN = 1;
    /**实体同步状态：同步成功*/
    public final static int ENTITY_DATE_SYN_STATUS_SUCCESS = 2;
    /**实体同步状态：同步失败*/
    public final static int ENTITY_DATE_SYN_STATUS_FAILED = 3;
    
    /**实体同步运行类型：手动*/
    public final static int ENTITY_DATE_SYN_RUN_TYPE_HAND = 1;
    /**实体同步运行类型：自动*/
    public final static int ENTITY_DATE_SYN_RUN_TYPE_AUTO = 0;
    
    //解析顺序
    /**加前缀*/
    public final static String PARSE_ORDER_HTTP = "http";
    /**字符替换*/
    public final static String PARSE_ORDER_REPLACE = "replace";
    /**字符截取*/
    public final static String PARSE_ORDER_SUBSTR = "subStr";
    /**字符切割*/
    public final static String PARSE_ORDER_SPLIT = "split";
    
    //map key
    public final static String KEY_USER_SESSION = "userSession";
    public final static String KEY_CATEGORY_ID = "categoryId";
    public final static String KEY_NAVIGATION_DESC = "navigationDesc";
    public final static String KEY_MENU_TREE = "menuTree";
    public final static String KEY_TITLE_DESC = "titleDesc";
    public final static String KEY_ERROR_MSG = "errorMsg";
    public final static String KEY_SUCCESS_MSG = "successMsg";
    
    public final static String KEY_SYS_CONFIG_ROOT_PATH = "system.root.path";
    
    //系统信息
    public final static String MSG_ERROR_DEFAULT = "系统出错了！";
    public final static String MSG_SUCCESS_DEFAULT = "操作已成功！";
    
    //dom 节点名称
    public final static String NODE_TYPE_SELECT = "select";
    public final static String NODE_TYPE_RADIO = "radio";
    public final static String NODE_TYPE_CHECKBOX = "checkbox";
    public final static String NODE_TYPE_TEXT = "text";
    
    //配置扫描状态
    /**配置扫描状态： 未扫描*/
    public final static int RULE_CONFIG_SCAN_STATUS_NO = 0;
    /**配置扫描状态：扫描中*/
    public final static int RULE_CONFIG_SCAN_STATUS_RUN = 1;
    /**配置扫描状态：扫描成功*/
    public final static int RULE_CONFIG_SCAN_STATUS_SUCCESS = 2;
    /**配置扫描状态：扫描失败*/
    public final static int RULE_CONFIG_SCAN_STATUS_FAILED = 3;
    
    /**中文语言ID*/
    public final static Integer LANG_ID_CN = 2;
    
    /**oc系统图片根目录  data/ */
    public final static String OC_IMAGE_ROOT_PATH = "data" + File.separator;
    /**oc系统图片根目录  image/data/ */
    public final static String OC_IMAGE_DESC_ROOT_PATH = "image" + File.separator + "data" + File.separator;
    
    //配置采集状态
    /**配置采集状态： 未采集*/
    public final static int NC_STATUS_NO = 0;
    /**配置采集状态：采集中*/
    public final static int NC_STATUS_RUN = 1;
    /**配置采集状态：采集成功*/
    public final static int NC_STATUS_SUCCESS = 2;
    /**配置采集状态：采集失败*/
    public final static int NC_STATUS_FAILED = 3;
}
